#!/usr/bin/env bash
#function: 关闭 spring boot 项目程序 
#parmeter:
#author:
#version:
#Test:

pid=`ps -ef|grep java|grep xxx.jar |awk '{print $2}'`

if [ -z $pid ]; then
    echo 'app not runing'
else
    echo 'kill pid ' $pid
    kill $pid
    sleep 5
    ps -ef|grep java
fi


